//package com.shou.trigger.http.mapstruct.request;
//import com.shou.api.model.request.LoginReq;
//import com.shou.domain.user.model.entity.UserEntity;
//import org.mapstruct.Mapper;
//import org.mapstruct.Mapping;
//import org.mapstruct.Mappings;
//import org.mapstruct.factory.Mappers;
//
//@Mapper
//public interface UserReqConvert {
//
//    UserReqConvert INSTANCE = Mappers.getMapper(UserReqConvert.class);
//    // 由于属性名相同，所以可以直接转换
//    @Mappings(
//            @Mapping(target = "gender" ,expression = "java(com.shou.domain.user.model.valobj.GenderEnum.getGenderEnumByCode(userReq.getGender()))")
//    )
//    UserEntity convertUserReqToUserEntity(LoginReq userReq);
//}
